require vpu.inc
do_install () {
        mkdir -p ${D}/usr
        mkdir -p ${D}/usr/lib/gstreamer-1.0
	oe_runmake install DESTDIR=${D}
        #chown -R root:root  ${D}${sysconfdir}/xdg
        chown -R root:root  ${D}/usr/bin/vdec_test
        chown -R root:root  ${D}/usr/lib
        rm -rf  ${D}/lib
        cp -rf ${D}/usr/lib/aarch64-linux-gnu/gstreamer-1.0/*  ${D}/usr/lib/gstreamer-1.0/
        install -D -p -m0644  ${S}/e2000/etc/xdg/gstomx.conf  ${D}${sysconfdir}/xdg/gstomx.conf
        mkdir -p ${D}/lib/firmware
        chown -R root:root  ${D}/lib/firmware
        cp ${S}/e2000/lib/firmware/*  ${D}/lib/firmware/
}

FILES:${PN} += " /usr/lib/* /usr/bin/*  ${sysconfdir}/xdg/gstomx.conf /lib/firmware/*"
INSANE_SKIP:${PN}-dev += "ldflags dev-elf file-rdeps"
